package org.example.dao.dto.order;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.example.dao.entity.user.UAddress;

import java.util.List;

/**
 * @author 22449
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class OrderDto {

    //用于查询映射
    private Long id;

    //用户找redis 也是父类映射id
    private String tempTradeNo;

    //总数量
    private Long totalNum;
    //总价
    private Integer totalPrice;
    //选择的收获地址
    private UAddress address;

    //买的商品的商铺和商品信息
    private List<OrderStore> commodityList;

}
